package com.baoxin.chenxixc4coach;

import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
import com.bumptech.glide.request.RequestOptions;

public class ContactUsActivity extends BaseActivity {

    private ImageView mLogo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_contact_us);
        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayShowTitleEnabled(false);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        mLogo = findViewById(R.id.logo);
       // mLogo.setImageDrawable(new ColorDrawable(getResources().getColor(R.color.colorAccent)));
        Glide.with(this)
                .load(new ColorDrawable(getResources().getColor(R.color.colorAccent)))
                .apply(RequestOptions.bitmapTransform(new CircleCrop()))
                .into(mLogo);
    }
}
